<template>
  <div class="home">
    <MdEditor :value="value" :handle-change="onChange"></MdEditor>
  </div>
</template>

<script lang="ts" setup>
import { defineComponent, ref } from 'vue'
import MdEditor from '@/components/MdEditor.vue' // @ is an alias to /src
const value = ref('')
const onChange = (v: string) => {
  value.value = v
}
</script>
